//
//  XXToolView.m
//  XX
//
//  Created by lly on 15/5/25.
//  Copyright (c) 2015年 lly. All rights reserved.
//

#import "XXToolView.h"

@implementation XXToolView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (IBAction)tapAction:(UIButton *)sender {
    if(self.selectBlock)
    {
        self.selectBlock(sender.tag);
    }
}



- (void)layoutSubviews
{
    [super layoutSubviews];
    self.frame = self.contentFrame;
}

- (void)setContentFrame:(CGRect)contentFrame
{
    [self setFrame:contentFrame];
    _contentFrame = contentFrame;
}
@end
